package online.cmagic.actionType.chain;

/**
 * @author wsc
 * @date: 2020年04月15日 17:06
 * @since JDK 1.8
 */
public class CompanyManager extends Leader {

    public CompanyManager(String name) {
        super(name);
    }

    public void process(LeaveRequest request) {
        System.out.println("CompanyManager:"+this.name+"审批通过");
        if (this.nextLeader!=null){
            this.nextLeader.process(request);
        }
    }
}
